import {Injectable} from '@angular/core';
import {BaseHttpService} from '../base-http.service';
import {Observable} from 'rxjs';

export interface MsdsFire {
  dangerSpeciality: string;
  msdsEntprId?: number;
  id?: number;
  outfireAgent: string;
  outfireNotice: string;
}


@Injectable({
  providedIn: 'root'
})
export class MsdsFireHttpService {

  constructor(public http: BaseHttpService) {
  }


  /*新增msdsFire 信息*/
  public addMsdsFire(param: MsdsFire): Observable<number> {
    return this.http.post('/msdsFire', param, {needSuccessInfo: true});
  }

  /*修改msdsFire信息*/
  public editMsdsFire(param: MsdsFire): Observable<void> {
    return this.http.put('/msdsFire', param, {needSuccessInfo: true});
  }

  /*查询msdsFire详情*/
  public getMsdsFireDetail(msdsEntprId: number): Observable<MsdsFire> {
    return this.http.get('/msdsFire/' + msdsEntprId);
  }


}
